#include <stdio.h>
#include "operation.h"

int main (void) {
   
	char string[64];
	char minChar;
	char maxChar;	
	char* pointerMinChar=&minChar;
	char* pointerMaxChar=&maxChar;
	
	
	int length;
	int quit=0;
	
	while (quit==0){
		printf("Bitte Test-String eingeben:\n");
		fgets(string, 63, stdin);
		
		if(string[0]!='q'){
			length=operation(pointerMinChar,pointerMaxChar,string);
			printf("length = %i, minChar = %c, maxChar = %c  \n",length,minChar,maxChar);
		}else
			quit=1;
	}
	
    return 0;
}
